package com.bookocean.infrastructure.persistence.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;


/**
 * 书摘PO类
 * 
 * @author BookOcean
 * @since 2024-01-01
 */
@Data
@TableName("book_quote_po")
public class BookQuotePO {


    /**
     * 书摘ID
     */
    @TableId(value = "quote_id", type = IdType.AUTO)
    private Long quoteId;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 书摘内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 书籍ID
     */
    @TableField(value = "book_id")
    private Long bookId;

    /**
     * 书籍类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 感想
     */
    @TableField(value = "user_feel")
    private String userFeel;

    /**
     * 配图
     */
    @TableField(value = "image_url")
    private String imageUrl;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at")
    private LocalDateTime updatedAt;

}
